package cn.virens.common.db;

import java.sql.SQLException;

public interface DatabaseManager extends AutoCloseable {
	/** 执行非事务查询 */
	DatabaseManager execute(DatabaseQueryExecute execute);

	/** 执行事务查询 */
	DatabaseManager transactionExecute(DatabaseQueryExecute execute);

	/** 获取数据库连接(绑定到线程) */
	DatabaseConnoction getConnection() throws SQLException;

}
